<#ibizinclude>
../@MACRO/CONTROL/LANGBASE.vue.ftl
</#ibizinclude>
<#assign detail>caption: '${item.getCaption()}', detailType: '${item.getDetailType()}', name: '${item.getName()}', visible: <#if item.getPSDEFDGroupLogic('PANELVISIBLE')??>false<#else>true</#if>, isShowCaption: ${item.isShowCaption()?c}, form: this, showMoreMode: ${item.getShowMoreMode()}</#assign>
<#if item.getDetailType()  == 'BUTTON'>
new FormButtonModel({ ${detail},disabled: false<#if item.getPSUIAction()??><#assign uiaction=item.getPSUIAction()>, uiaction: { type: '${uiaction.getUIActionType()}', 
 tag: '${uiaction.getUIActionTag()}'<#if (uiaction.getActionTarget()!="")>,actiontarget: '${uiaction.getActionTarget()}'</#if><#if uiaction.getNoPrivDisplayMode(view)??>,noprivdisplaymode:${uiaction.getNoPrivDisplayMode(view)}</#if><#if uiaction.getDataAccessAction()??>,dataaccaction:'${uiaction.getDataAccessAction()}'</#if>,visabled: true,disabled: false}</#if> }),
<#elseif item.getDetailType()  == 'DRUIPART'>
new FormDRUIPartModel({ ${detail} }),
<#elseif item.getDetailType()  == 'FORMITEM'>
new FormItemModel({ ${detail}, required:<#if item.isAllowEmpty()>false<#else>true</#if>, disabled: false, enableCond: ${item.getEnableCond()?c} }),
<#elseif item.getDetailType()  == 'FORMPAGE'>
new FormPageModel({ ${detail} }),
<#elseif item.getDetailType()  == 'FORMPART'>
new FormPartModel({ ${detail} }),
<#elseif item.getDetailType()  == 'GROUPPANEL'>
<#--  计算当前分组展示锚点表单项  -->
<#assign anchorPoints = "">
<#if item.getAnchorablePSDEFormItems?? && item.getAnchorablePSDEFormItems()??>
<#assign anchorPoints>, anchorPoints: [<#list item.getAnchorablePSDEFormItems() as item>'${item.getName()}', </#list>]</#assign>
</#if>
<#--  计算当前分组所属受控表单项  -->
<#assign controlled = ""/>
<#if item.getShowMoreMode() == 2>
    <#assign controlled>
, controlledItems: [
        <#list ctrl.getAllPSDEFormDetails() as detailItem>
            <#if detailItem.getShowMoreMode() == 1 && detailItem.getShowMoreMgrPSDEFormDetail?? && detailItem.getShowMoreMgrPSDEFormDetail()??>
            <#assign parent = detailItem.getShowMoreMgrPSDEFormDetail()/>
                <#if parent.getName() == item.getName()>
                    '${detailItem.getName()}',
                </#if>
            </#if>
        </#list>
        ]</#assign>
</#if>
new FormGroupPanelModel({ ${detail}${anchorPoints}${controlled}, uiActionGroup: { caption: '<#if item.getPSUIActionGroup()??>${item.getPSUIActionGroup().getName()}</#if>', langbase: '<#if langbase??>${langbase}</#if>', extractMode: '<#if item.getActionGroupExtractMode?? && item.getActionGroupExtractMode()??>${item.getActionGroupExtractMode()}<#else>ITEM</#if>', details: [<#if item.getPSUIActionGroup()??><#list item.getPSUIActionGroup().getPSUIActionGroupDetails() as uadetails><#if uadetails_index gt 0>, </#if>{ name: '${item.getName()}_${uadetails.getName()}', caption: '${uadetails.getPSUIAction().getCaption()}', uiactiontag: '<#if uadetails.getPSUIAction().getPSAppDataEntity?? && uadetails.getPSUIAction().getPSAppDataEntity()??>${uadetails.getPSUIAction().getPSAppDataEntity().getCodeName()?lower_case}_</#if>${uadetails.getPSUIAction().getUIActionTag()?lower_case}'<#if uadetails.getPSUIAction().getPSSysImage()??>, <#assign viewimg=uadetails.getPSUIAction().getPSSysImage()/><#if viewimg.getCssClass() != ''>icon: '${viewimg.getCssClass()}'<#else>img: '${viewimg.getImagePath()}'</#if></#if>,isShowCaption:${uadetails.isShowCaption()?c},isShowIcon:${uadetails.isShowIcon()?c} }</#list></#if>] } }),
<#elseif item.getDetailType()  == 'IFRAME'>
new FormIFrameModel({ ${detail} }),
<#elseif item.getDetailType()  == 'RAWITEM'>
new FormRowItemModel({ ${detail} }),
<#elseif item.getDetailType()  == 'TABPAGE'>
new FormTabPageModel({ ${detail} }),
<#elseif item.getDetailType()  == 'TABPANEL'>
new FormTabPanelModel({ ${detail}, tabPages: [<#list item.getPSDEFormTabPages() as formmenber><#if formmenber_index gt 0>, </#if>{ name: '${formmenber.name}', index: ${formmenber_index}, visible: <#if formmenber.getPSDEFDGroupLogic('PANELVISIBLE')??>false<#else>true</#if> }</#list>] }),
<#elseif item.getDetailType()  == 'USERCONTROL'>
new FormUserControlModel({ ${detail} }),
</#if>